﻿using System.Web.Mvc;
using DraggingAndSorting.Models;

namespace DraggingAndSorting.Controllers
{
	public class HomeController : Controller
	{
		private readonly IThingRepository _repository;

		public HomeController(IThingRepository repository)
		{
			_repository = repository;
		}

		public ActionResult Index()
		{
			var models = _repository.Find();

			return View("Index", models);
		}
	}
}
